/*
 * 项目名称:    wms-app-xinpu
 * 创建人员:    DongPeng
 * 创建时间:    2023-02-28
 * copyright(c) 2022 无锡星智数服科技有限公司
 */
package org.jeecg.modules.dock.client;


import com.dtflys.forest.annotation.*;
import com.dtflys.forest.converter.json.ForestJacksonConverter;
import org.jeecg.modules.dock.constant.SystemConstants;
import org.jeecg.modules.dock.entity.dto.request.BaseRequestDTO;
import org.jeecg.modules.dock.entity.dto.request.HZJReturnBucketRequest;
import org.jeecg.modules.dock.entity.dto.request.ZJCallBucketRequest;
import org.jeecg.modules.dock.entity.ems.response.EmsBaseResponseVO;

import java.util.List;

/**
 * EMS对接接口
 *
 * @author Fyl
 * @version 1.0.0
 * @date 2023-02-28
 * @description 类描述
 */
@BaseRequest(
        baseURL = "${emsAddress}",
        headers = {"~request_method:POST", "content-Type:application/json", SystemConstants.SYS_HEADER + ":" + SystemConstants.EMS}
)
@ForestClient
public interface EMSRequestClient extends BaseRequestClient {

    /**
     * ems纵剪叫纸筒
     *
     * @param request
     * @return
     */
    @Post(value = "/api/wms/HJ_TAKE_BUCKET", decoder = ForestJacksonConverter.class)
    EmsBaseResponseVO zjCallBucket(@Body ZJCallBucketRequest request);

    /**
     * ems横剪-纵剪退纸筒
     *
     * @param request
     * @return
     */
    @PostRequest(value = "/api/wms/HZJ_RETURN_BUCKET", decoder = ForestJacksonConverter.class)
    EmsBaseResponseVO hzjReturnBucket(@JSONBody HZJReturnBucketRequest request);


    /**
     * ems强制完成
     *
     * @param request
     * @return
     */
    @PostRequest(value = "/api/wms/FORCE_COMPLETE", decoder = ForestJacksonConverter.class)
    EmsBaseResponseVO forceFinish(@JSONBody BaseRequestDTO request);

}
